Optimal. Leaf size=136 \[ -\frac {2 a (b c-2 a d) (b c-a d) x}{b^5}+\frac {(b c-3 a d) (b c-a d) x^2}{2 b^4}+\frac {2 d (b c-a d) x^3}{3 b^3}+\frac {d^2 x^4}{4 b^2}+\frac {a^3 (b c-a d)^2}{b^6 (a+b x)}+\frac {a^2 (3 b c-5 a d) (b c-a d) \log (a+b x)}{b^6} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {90}
\begin {gather*} \frac {a^3 (b c-a d)^2}{b^6 (a+b x)}+\frac {a^2 (3 b c-5 a d) (b c-a d) \log (a+b x)}{b^6}-\frac {2 a x (b c-2 a d) (b c-a d)}{b^5}+\frac {x^2 (b c-3 a d) (b c-a d)}{2 b^4}+\frac {2 d x^3 (b c-a d)}{3 b^3}+\frac {d^2 x^4}{4 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rubi steps
\begin {align*} \int \frac {x^3 (c+d x)^2}{(a+b x)^2} \, dx &=\int \left (\frac {2 a (b c-2 a d) (-b c+a d)}{b^5}+\frac {(b c-3 a d) (b c-a d) x}{b^4}+\frac {2 d (b c-a d) x^2}{b^3}+\frac {d^2 x^3}{b^2}-\frac {a^3 (-b c+a d)^2}{b^5 (a+b x)^2}+\frac {a^2 (3 b c-5 a d) (b c-a d)}{b^5 (a+b x)}\right ) \, dx\\ &=-\frac {2 a (b c-2 a d) (b c-a d) x}{b^5}+\frac {(b c-3 a d) (b c-a d) x^2}{2 b^4}+\frac {2 d (b c-a d) x^3}{3 b^3}+\frac {d^2 x^4}{4 b^2}+\frac {a^3 (b c-a d)^2}{b^6 (a+b x)}+\frac {a^2 (3 b c-5 a d) (b c-a d) \log (a+b x)}{b^6}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 149, normalized size = 1.10 \begin {gather*} \frac {-24 a b \left (b^2 c^2-3 a b c d+2 a^2 d^2\right ) x+6 b^2 \left (b^2 c^2-4 a b c d+3 a^2 d^2\right ) x^2+8 b^3 d (b c-a d) x^3+3 b^4 d^2 x^4+\frac {12 a^3 (b c-a d)^2}{a+b x}+12 a^2 \left (3 b^2 c^2-8 a b c d+5 a^2 d^2\right ) \log (a+b x)}{12 b^6} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 174, normalized size = 1.28
method | result | size |
norman | \(\frac {\frac {a \left (5 a^{4} d^{2}-8 a^{3} b c d +3 a^{2} b^{2} c^{2}\right )}{b^{6}}+\frac {d^{2} x^{5}}{4 b}+\frac {\left (5 a^{2} d^{2}-8 a b c d +3 b^{2} c^{2}\right ) x^{3}}{6 b^{3}}-\frac {a \left (5 a^{2} d^{2}-8 a b c d +3 b^{2} c^{2}\right ) x^{2}}{2 b^{4}}-\frac {d \left (5 a d -8 b c \right ) x^{4}}{12 b^{2}}}{b x +a}+\frac {a^{2} \left (5 a^{2} d^{2}-8 a b c d +3 b^{2} c^{2}\right ) \ln \left (b x +a \right )}{b^{6}}\) | \(172\) |
default | \(-\frac {-\frac {1}{4} d^{2} x^{4} b^{3}+\frac {2}{3} a \,b^{2} d^{2} x^{3}-\frac {2}{3} b^{3} c d \,x^{3}-\frac {3}{2} a^{2} b \,d^{2} x^{2}+2 a \,b^{2} c d \,x^{2}-\frac {1}{2} b^{3} c^{2} x^{2}+4 a^{3} d^{2} x -6 a^{2} c d b x +2 a \,b^{2} c^{2} x}{b^{5}}+\frac {a^{2} \left (5 a^{2} d^{2}-8 a b c d +3 b^{2} c^{2}\right ) \ln \left (b x +a \right )}{b^{6}}+\frac {a^{3} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}{b^{6} \left (b x +a \right )}\) | \(174\) |
risch | \(\frac {d^{2} x^{4}}{4 b^{2}}-\frac {2 a \,d^{2} x^{3}}{3 b^{3}}+\frac {2 c d \,x^{3}}{3 b^{2}}+\frac {3 a^{2} d^{2} x^{2}}{2 b^{4}}-\frac {2 a c d \,x^{2}}{b^{3}}+\frac {c^{2} x^{2}}{2 b^{2}}-\frac {4 a^{3} d^{2} x}{b^{5}}+\frac {6 a^{2} c d x}{b^{4}}-\frac {2 a \,c^{2} x}{b^{3}}+\frac {a^{5} d^{2}}{b^{6} \left (b x +a \right )}-\frac {2 a^{4} c d}{b^{5} \left (b x +a \right )}+\frac {a^{3} c^{2}}{b^{4} \left (b x +a \right )}+\frac {5 a^{4} \ln \left (b x +a \right ) d^{2}}{b^{6}}-\frac {8 a^{3} \ln \left (b x +a \right ) c d}{b^{5}}+\frac {3 a^{2} \ln \left (b x +a \right ) c^{2}}{b^{4}}\) | \(205\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 175, normalized size = 1.29 \begin {gather*} \frac {a^{3} b^{2} c^{2} - 2 \, a^{4} b c d + a^{5} d^{2}}{b^{7} x + a b^{6}} + \frac {3 \, b^{3} d^{2} x^{4} + 8 \, {\left (b^{3} c d - a b^{2} d^{2}\right )} x^{3} + 6 \, {\left (b^{3} c^{2} - 4 \, a b^{2} c d + 3 \, a^{2} b d^{2}\right )} x^{2} - 24 \, {\left (a b^{2} c^{2} - 3 \, a^{2} b c d + 2 \, a^{3} d^{2}\right )} x}{12 \, b^{5}} + \frac {{\left (3 \, a^{2} b^{2} c^{2} - 8 \, a^{3} b c d + 5 \, a^{4} d^{2}\right )} \log \left (b x + a\right )}{b^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.96, size = 246, normalized size = 1.81 \begin {gather*} \frac {3 \, b^{5} d^{2} x^{5} + 12 \, a^{3} b^{2} c^{2} - 24 \, a^{4} b c d + 12 \, a^{5} d^{2} + {\left (8 \, b^{5} c d - 5 \, a b^{4} d^{2}\right )} x^{4} + 2 \, {\left (3 \, b^{5} c^{2} - 8 \, a b^{4} c d + 5 \, a^{2} b^{3} d^{2}\right )} x^{3} - 6 \, {\left (3 \, a b^{4} c^{2} - 8 \, a^{2} b^{3} c d + 5 \, a^{3} b^{2} d^{2}\right )} x^{2} - 24 \, {\left (a^{2} b^{3} c^{2} - 3 \, a^{3} b^{2} c d + 2 \, a^{4} b d^{2}\right )} x + 12 \, {\left (3 \, a^{3} b^{2} c^{2} - 8 \, a^{4} b c d + 5 \, a^{5} d^{2} + {\left (3 \, a^{2} b^{3} c^{2} - 8 \, a^{3} b^{2} c d + 5 \, a^{4} b d^{2}\right )} x\right )} \log \left (b x + a\right )}{12 \, {\left (b^{7} x + a b^{6}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.35, size = 175, normalized size = 1.29 \begin {gather*} \frac {a^{2} \left (a d - b c\right ) \left (5 a d - 3 b c\right ) \log {\left (a + b x \right )}}{b^{6}} + x^{3} \left (- \frac {2 a d^{2}}{3 b^{3}} + \frac {2 c d}{3 b^{2}}\right ) + x^{2} \cdot \left (\frac {3 a^{2} d^{2}}{2 b^{4}} - \frac {2 a c d}{b^{3}} + \frac {c^{2}}{2 b^{2}}\right ) + x \left (- \frac {4 a^{3} d^{2}}{b^{5}} + \frac {6 a^{2} c d}{b^{4}} - \frac {2 a c^{2}}{b^{3}}\right ) + \frac {a^{5} d^{2} - 2 a^{4} b c d + a^{3} b^{2} c^{2}}{a b^{6} + b^{7} x} + \frac {d^{2} x^{4}}{4 b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.55, size = 236, normalized size = 1.74 \begin {gather*} \frac {{\left (3 \, d^{2} + \frac {4 \, {\left (2 \, b^{2} c d - 5 \, a b d^{2}\right )}}{{\left (b x + a\right )} b} + \frac {6 \, {\left (b^{4} c^{2} - 8 \, a b^{3} c d + 10 \, a^{2} b^{2} d^{2}\right )}}{{\left (b x + a\right )}^{2} b^{2}} - \frac {12 \, {\left (3 \, a b^{5} c^{2} - 12 \, a^{2} b^{4} c d + 10 \, a^{3} b^{3} d^{2}\right )}}{{\left (b x + a\right )}^{3} b^{3}}\right )} {\left (b x + a\right )}^{4}}{12 \, b^{6}} - \frac {{\left (3 \, a^{2} b^{2} c^{2} - 8 \, a^{3} b c d + 5 \, a^{4} d^{2}\right )} \log \left (\frac {{\left | b x + a \right |}}{{\left (b x + a\right )}^{2} {\left | b \right |}}\right )}{b^{6}} + \frac {\frac {a^{3} b^{6} c^{2}}{b x + a} - \frac {2 \, a^{4} b^{5} c d}{b x + a} + \frac {a^{5} b^{4} d^{2}}{b x + a}}{b^{10}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 236, normalized size = 1.74 \begin {gather*} x\,\left (\frac {a^2\,\left (\frac {2\,a\,d^2}{b^3}-\frac {2\,c\,d}{b^2}\right )}{b^2}-\frac {2\,a\,\left (\frac {c^2}{b^2}+\frac {2\,a\,\left (\frac {2\,a\,d^2}{b^3}-\frac {2\,c\,d}{b^2}\right )}{b}-\frac {a^2\,d^2}{b^4}\right )}{b}\right )+x^2\,\left (\frac {c^2}{2\,b^2}+\frac {a\,\left (\frac {2\,a\,d^2}{b^3}-\frac {2\,c\,d}{b^2}\right )}{b}-\frac {a^2\,d^2}{2\,b^4}\right )-x^3\,\left (\frac {2\,a\,d^2}{3\,b^3}-\frac {2\,c\,d}{3\,b^2}\right )+\frac {a^5\,d^2-2\,a^4\,b\,c\,d+a^3\,b^2\,c^2}{b\,\left (x\,b^6+a\,b^5\right )}+\frac {\ln \left (a+b\,x\right )\,\left (5\,a^4\,d^2-8\,a^3\,b\,c\,d+3\,a^2\,b^2\,c^2\right )}{b^6}+\frac {d^2\,x^4}{4\,b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________